import request from '@/utils/request'

export function getAlldept(params) {
  return request({
    url: 'api/datatype/getalldept',
    method: 'get',
    params
  })
}

export function getDatadeptspr(dataDept) {
  return request({
    url: `api/interact/getdatadeptspr/${dataDept}`,
    method: 'get'
  })
}

export function getspr(data) {
  return request({
    url: 'api/interact/getspr',
    method: 'get',
    data
  })
}

export function getInteractAdd(data) {
  return request({
    url: '/api/interact/add',
    method: 'post',
    data
  })
}

export function getInteractList(data) {
  return request({
    url: '/api/interact/list',
    method: 'post',
    data
  })
}

export function getPagesupervision(data) {
  return request({
    url: '/api/supervision/pagesupervision',
    method: 'post',
    data
  })
}

export function getPageTaskPage(data) {
  return request({
    url: '/api/datatask/taskPage',
    method: 'post',
    data
  })
}
